class Metric < ActiveRecord::Base
  set_table_name :eshop_metrics

  paginates_per 15

  belongs_to :property
  
  has_paper_trail
  diff :exclude => [:id]

  validates :value, :presentation, :length => {:maximum => 15}, :presence => true
  validates :value, :uniqueness => true
end
